package com.it.text;

//测试类
public class CarText {
    public static void main(String[] args) {
        //全参构造方法
        Car car = new Car("Mercedes", "黑色", 1200000);
        //调用方法
        car.start();
        car.run();
        car.stop();

        //无参构造方法
        Car car1 = new Car();
        //初始化
        car1.brand = "奥迪";
        car1.colour = "白色";
        car1.price = 300000;

        //调用方法
        car1.start();
        car1.run();
        car1.stop();
    }
}
